package org.breathe.dynamic.thread.pool.core.spring;

/**
 * @author: breathe
 * @createTime: 2025-05-19
 */
@FunctionalInterface
public interface TaskWrapper {

    /**
     * 任务的名字
     * @return name
     */
    default String name() {
        return null;
    }

    /**
     * 被给的runnable
     *
     */
    Runnable wrap(Runnable runnable);
}
